﻿namespace OpenLS.Drawing.UI
{
    class ShapeFormatter
    {
        private readonly IShape _model;

        public ShapeFormatter(IShape model)
        {
            _model = model;
        }

        internal IShape Model
        {
            get { return _model; }
        }

        protected ShapeProperties EnsureShapeProperties()
        {
            if (Model.ShapeProperties == null)
                Model.ShapeProperties = new ShapeProperties();
            return Model.ShapeProperties;
        }
    }
}